<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of WeiboAction
 *
 * @author Administrator
 */
import('@.Filter.SecurityAction');
import('@.Service.ConfigService');

class WeiboAction extends SecurityAction {

    function weibo() {
        $cService = new ConfigService();
        $aKeyConcern = $cService->getConfig('a_key_concern');

        $this->assign('aKeyConcern', $aKeyConcern);
        $this->assign('content', 'weibo');
        $this->display('Admin:global');
    }
    
    function saveWeibo(){
        $cService = new ConfigService();
        
        $a_key_concern = $_POST['a_key_concern'];
        $cService->setConfigValue('a_key_concern', $a_key_concern);
        
        $this->redirect('weibo');
    }

}

?>
